package com.hjc.springbootstudyweb.service.ServiceImpl;

import com.hjc.springbootstudyweb.entity.IndentModel;
import com.hjc.springbootstudyweb.mapper.IndentMapping;
import com.hjc.springbootstudyweb.service.IndentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: HJC
 * Date: 2019/12/1
 * Time: 21:58
 * To change this template use File | Settings | File Templates.
 */
@Service
public class IndentServiceImpl implements IndentService {
    @Autowired
    private IndentMapping indentMapping;

    @Override
    public List<IndentModel> queryIndent() {
        return indentMapping.queryIndent();
    }

    @Override
    public List<IndentModel> queryByIid(int uid) {
        return indentMapping.queryByIid(uid);
    }

    @Override
    public int addIndent(IndentModel indentModel) {
        return indentMapping.addIndent(indentModel);
    }
}
